<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\Cart
 *
 * @property int $rec_id
 * @property int $user_id
 * @property string $session_id
 * @property int $goods_id
 * @property string $goods_sn
 * @property int $product_id
 * @property string $goods_name
 * @property string $market_price
 * @property string $goods_price
 * @property int $goods_number
 * @property string $goods_attr
 * @property int $is_real
 * @property string $extension_code
 * @property int $parent_id
 * @property int $rec_type
 * @property int $is_gift
 * @property int $is_shipping
 * @property int $can_handsel
 * @property string $goods_attr_id
 * @property string|null $is_checked
 * @method static \Illuminate\Database\Eloquent\Builder|Cart newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Cart newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Cart query()
 * @method static \Illuminate\Database\Eloquent\Builder|Cart whereCanHandsel($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Cart whereExtensionCode($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Cart whereGoodsAttr($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Cart whereGoodsAttrId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Cart whereGoodsId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Cart whereGoodsName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Cart whereGoodsNumber($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Cart whereGoodsPrice($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Cart whereGoodsSn($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Cart whereIsChecked($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Cart whereIsGift($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Cart whereIsReal($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Cart whereIsShipping($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Cart whereMarketPrice($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Cart whereParentId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Cart whereProductId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Cart whereRecId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Cart whereRecType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Cart whereSessionId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Cart whereUserId($value)
 * @mixin \Eloquent
 */
class Cart extends Model
{
    protected $table = 'cart';
    protected $primaryKey = 'rec_id';
    protected $fillable = [
        'rec_id', 'user_id', 'session_id', 'goods_id', 'goods_sn', 'product_id', 'goods_name',
        'market_price', 'goods_price', 'goods_number', 'goods_attr', 'is_real', 'extension_code',
        'parent_id', 'rec_type', 'is_gift', 'is_shipping', 'can_handsel', 'goods_attr_id', 'is_checked'
    ];
}
